#include "Dog.h"

Dog::Dog(std::string name, std::string color, int legNum) 
    : Animal(name, color, legNum) {}

void Dog::introduce() const {
    std::cout << "我是一只狗，名字叫" << getName() << "，毛色是" << getColor() << "，有" << getLegNum() << "条腿，我会汪汪汪叫。" << std::endl;
}